<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
//String path = request.getContextPath();
//String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ include file="include/css_tree.jsp"%><%-- /*包含css样式表*/ --%> 

<%
	//验证用户合法性

	//取用户登陆临时表
	SysDlsbVO dlsbVO = (SysDlsbVO)session.getAttribute("dlsbVO");
	java.sql.Timestamp userLastActivieTime = (java.sql.Timestamp)session.getAttribute("userLastActivieTime");
	java.util.Calendar calendar = java.util.Calendar.getInstance();
	long activeLastTime = 6000000; //用户session存活时间
	//取用户session存活的最早访问时间

	java.sql.Timestamp validTime = new java.sql.Timestamp(calendar.getTime().getTime() - activeLastTime);

	//取用户权限

	ArrayList dlqxVOAl = (ArrayList)session.getAttribute("dlqxVOAl");

	if(dlsbVO == null || userLastActivieTime == null ||
		validTime.compareTo(userLastActivieTime) > 0 || dlqxVOAl.size() <= 0)
	{
		System.out.println("用户登陆异常。");
%>
<jsp:forward page="main_frame.jsp"/>
<%
    }

	//更新session中用户最近请求的确时间

    userLastActivieTime = new java.sql.Timestamp(calendar.getTime().getTime());
    session.setAttribute("userLastActivieTime", userLastActivieTime);
    Integer parentId = new Integer(-1);
    if(request.getParameter("menuId") != null && !request.getParameter("menuId").equals(""))
	{
		parentId = new Integer(request.getParameter("menuId"));
    }
	if(parentId.intValue()==-1 && parentId.intValue()!=601)
	{
		System.out.println("菜单无链接，进入缺省页面。");
%>
<jsp:forward page="/<%=projectpath%>/kernel/pub/frame/main_main.jsp"/>
<%  
	}
	KerMenuVO[]  childMenuAr = kernelJB.getKerMenuByParid(parentId);
	//System.out.println("******childMenuAr:"+childMenuAr.length);
    KerMenuVO myPage = kernelJB.getKerMenuInfo(parentId);
	//查询所需的页面项
    Integer sysElmId = new Integer(request.getParameter("sysElmId"));
	//System.out.println("main.jsp进入导航页(main.jsp)...");
	//System.out.println("main.jsp系统元素号: " + sysElmId);
    KerQuerytolVO[] voArray = kernelJB.getKerQuerypageByElm(sysElmId);
//System.out.println("******voArray:"+voArray.length+"---"+voArray[0].getQuerytolId()+"----"+voArray[1].getQuerytolId());
    int k = 0;//组合查询的条件数
    int m = 0;//单一查询的条件数
 %>
<html>
<head>
<script>
var x0=0,y0=0,x1=0,y1=0;
var offx=6,offy=6;
var moveable=false;
var hover='#114fc1',normal='#114fc1';//color;
var index=4;//z-index;
//开始拖动;
function startDrag(obj)
{
        if(event.button==1)
        {
                //锁定标题栏;
                obj.setCapture();
                //定义对象;
                var win = obj.parentNode;
                var sha = win.nextSibling;
                //记录鼠标和层位置;
                x0 = event.clientX;
                y0 = event.clientY;
                x1 = parseInt(win.style.left);
                y1 = parseInt(win.style.top);
                //记录颜色;
                normal = obj.style.backgroundColor;
                //改变风格;
                obj.style.backgroundColor = hover;
                win.style.borderColor = hover;
                obj.nextSibling.style.color = "#666666";
                sha.style.left = x1 + offx;
                sha.style.top  = y1 + offy;
                moveable = true;
        }
}
//拖动;
function drag(obj)
{
        if(moveable)
        {
                var win = obj.parentNode;
                var sha = win.nextSibling;
                win.style.left = x1 + event.clientX - x0;
                win.style.top  = y1 + event.clientY - y0;
                sha.style.left = parseInt(win.style.left) + offx;
                sha.style.top  = parseInt(win.style.top) + offy;
        }
}
//停止拖动;
function stopDrag(obj)
{
        if(moveable)
        {
                var win = obj.parentNode;
                var sha = win.nextSibling;
                var msg = obj.nextSibling;
                win.style.borderColor     = normal;
                obj.style.backgroundColor = normal;
                msg.style.color           = "#666666";
                sha.style.left = obj.parentNode.style.left;
                sha.style.top  = obj.parentNode.style.top;
                obj.releaseCapture();
                moveable = false;
        }
}
//获得焦点;
function getFocus(obj)
{
        if(obj.style.zIndex!=index)
        {
                index = index + 2;
                var idx = index;
                obj.style.zIndex=idx;
                obj.nextSibling.style.zIndex=idx-1;
        }
}
//最小化;
function min(obj)
{
        var win = obj.parentNode.parentNode;
        var sha = win.nextSibling;
        var tit = obj.parentNode;
        var msg = tit.nextSibling;
        var flg = msg.style.display=="none";
        if(flg)
        {
                win.style.height  = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*1;//改：2*2
                sha.style.height  = win.style.height;
                msg.style.display = "block";
                obj.innerHTML = "0";
        }
        else
        {
                win.style.height  = parseInt(tit.style.height) + 2*1;
                sha.style.height  = win.style.height;
                obj.innerHTML = "2";
                msg.style.display = "none";
        }
}
//关闭;
function cls(obj)
{
        var win = obj.parentNode.parentNode;
        var sha = win.nextSibling;
        win.style.visibility = "hidden";
        sha.style.visibility = "hidden";
}
//显示已经创建的对象

function viewObj(win)
{
        var sha = win.nextSibling;
        win.style.visibility = "visible";
        win.style.width   = 300;
        win.style.height  = 200;
        win.style.left    = 320;
        win.style.top     = 160;
        sha.style.visibility = "visible";
        sha.style.width   = 300;
        sha.style.height  = 200;
        sha.style.left    = 320;
        sha.style.top     = 160;
}
//隐藏已经创建的对象

function hideObj(win)
{
        var sha = win.nextSibling;
        win.style.visibility = "hidden";
        win.style.width   = 0;
        win.style.height  = 0;
        win.style.left    = 600;
        win.style.top     = 600;
        sha.style.visibility = "hidden";
        sha.style.width   = 0;
        sha.style.height  = 0;
        sha.style.left    = 600;
        sha.style.top     = 600;
}
//创建一个对象;
function xWin(id,w,h,l,t,tit,msg)
{
        index = index;
        this.id      = id;
        this.width   = w;
        this.height  = h;
        this.left    = l;
        this.top     = t;
        this.zIndex  = index;
        this.title   = tit;
        this.message = msg;
        this.obj     = null;
        this.bulid   = bulid;
        this.bulid();
}
//初始化;
function bulid()
{
        var str = ""
                + "<div id=xMsg" + this.id + " "
                + "style='"
                + "z-index:" + this.zIndex + ";"
                + "width:" + this.width + ";"
                + "height:" + this.height + ";"
                + "left:" + this.left + ";"
                + "top:" + this.top + ";"
                + "background-color:" + normal + ";"
                + "color:" + "#666666" + ";"
				//+ "class=font9;"
                + "font-size:9pt;"
                + "font-family:Arial;"
                + "position:absolute;"
                + "cursor:default;"
                + "border:1px solid " + normal + ";"
                + "' "
                + "onmousedown='getFocus(this)'>"
                        + "<div id='myChild' "
                        + "style='"
                        + "background-color:" + normal + ";"
                        + "width:" + (this.width-2*1) + ";"
                        + "height:18;"
                        + "color:#9fe4f8;"
                        + "' "
                        + "onmousedown='startDrag(this)' "
                        + "onmouseup='stopDrag(this)' "
                        + "onmousemove='drag(this)' "
                        + "ondblclick='min(this.childNodes[1])'"
                        + ">"
                                + "<span style='width:" + (this.width-2*12-4) + ";padding-left:2px;'>" + this.title + "</span>"
                                + "<span style='width:12;border-width:0px;color:#9fe4f8;font-family:webdings;' onclick='min(this)'>0</span>"
                                + "<span style='width:12;border-width:0px;color:#9fe4f8;font-family:webdings;' onclick='cls(this)'>r</span>"
                        + "</div>"
                                + "<div style='"
                                + "width:100%;"
                                + "height:" + (this.height-18-2) + ";"
                                + "background-color:#9fe4f8;"
                                + "line-height:16px;"
                                + "word-break:break-all;"
                                + "padding:1px;"
                                + "'>" + this.message + "</div>"
                + "</div>"
                + "<div style='"
                + "width:" + this.width + ";"
                + "height:" + this.height + ";"
                + "top:" + this.top + ";"
                + "left:" + this.left + ";"
                + "z-index:" + (this.zIndex-1) + ";"
                + "position:absolute;"
                + "background-color:#cccccc;"
                + "filter:alpha(opacity=40);"
                + "'>by wildwind</div>";
        document.body.insertAdjacentHTML("beforeEnd",str);
}
//查询赋值

function initialize(aa)
{
	if(form2.divStaus.value!="9")//当前页处于首页连接时禁止查询
	{
	if(form2.divStaus.value=="0"){
	<%if(voArray != null){%>
	var myMess="<table width=90% border=0 cellspacing=1 cellpadding=1 class=\\\"bg_table\\\">"
  +"<tr>"
  +"<td>"
  +"<table width=97% border=0 cellspacing=1 cellpadding=1 align=center class=\\\"bg_table\\\">"
  +"<form name=\"form4\" method=post action=\"/hotel/servlet/ControlServlet\" target=\"I2\">"
  +"<input type=\"hidden\" name=\"dotype\">"
  +"<input type=\"hidden\" name=\"workFldeId\" value=\"3\">"
  +"<input type=\"hidden\" name=\"sysElmId\" value=\"1\">"
  +"<input type=\"hidden\" name=\"querySjbm\" value=\"<%=voArray[0].getQuerytolSjbm()%>\">"
  +"<input type=\"hidden\" name=\"pageId\" value=\"<%=request.getParameter("sysElmId")%>\">"
 <%
for(int i = 0;i < voArray.length;i++){
     if(voArray[i].getQuerytolSig().equals("0")){
     out.println("+\"<tr width=\\\"100%\\\">\"");
     out.println("+\"<td>\"");
     out.println("+\"<input type=\\\"radio\\\" name=\\\"sig\\\" value=\\\""+new Integer(m).toString()+"\\\">\"");
     out.println("+\"</td>\"");
     out.println("+\"<td class=\\\"text\\\" width=\\\"50%\\\">\"");
     out.println("+\""+voArray[i].getQuerytolName()+"\"");
     out.println("+\"</td>\"");
     out.println("+\"<td width=\\\"50%\\\">\"");
     if(!voArray[i].getQuerytolType().equals("select")){
     out.print("+\"<input  type=\\\""+voArray[i].getQuerytolType()+"\\\" name=\\\""+voArray[i].getQuerytolPar()+"\\\"  ");
     if(voArray[i].getQuerytolDo()!=null){out.print(voArray[i].getQuerytolDo());}
     out.println(" onfocus=\\\"doFocus('"+new Integer(m).toString()+"')\\\" class=\\\"area100\\\">\"");
     }else{
     out.print("+\"<select name=\\\""+voArray[i].getQuerytolPar()+"\\\"  ");
     if(voArray[i].getQuerytolDo()!=null){out.print(voArray[i].getQuerytolDo());}
     out.println(" onfocus=\\\"doFocus('"+new Integer(m).toString()+"')\\\">\"");
     try{
     Class reflectClassJ2E=Class.forName(voArray[i].getQuerytolJ2e());
     Object myInst = reflectClassJ2E.newInstance();
     Method doJ2e = reflectClassJ2E.getMethod(voArray[i].getQuerytolJ2em(),null);
     Object[] myData = (Object[])doJ2e.invoke(myInst,null);
     for(int j=0;j<myData.length;j++){
                   Class reflectClassVO = myData[j].getClass();
                   Method getVO = reflectClassVO.getMethod(voArray[i].getQuerytolVo(),null);
                   Method getVOm = reflectClassVO.getMethod(voArray[i].getQuerytolVom(),null);
     out.println("+\"<option value=\\\""+getVO.invoke(myData[j],null).toString()+"\\\">"+getVOm.invoke(myData[j],null).toString()+"</option>\"");
             }
     }
             catch (IllegalAccessException ex) {
               ex.printStackTrace();
             }catch (IllegalArgumentException ex) {
               ex.printStackTrace();
             }catch (InvocationTargetException ex) {
               ex.printStackTrace();
             }catch (NoSuchMethodException ex) {
               ex.printStackTrace();
             }catch (SecurityException ex) {
               ex.printStackTrace();
             }
     out.println("+\"</select>\"");
     }
     out.println("+\"</td>\"");
     out.println("+\"</tr>\"");
     m = m + 1;}else k = k + 1;}
     if(m < voArray.length){
     out.println("+\"<tr>\"");
     out.println("+\"<td>\"");
     out.println("+\"<input type=\\\"radio\\\" name=\\\"sig\\\" value=\\\""+new Integer(m).toString()+"\\\">\"");
     out.println("+\"</td>\"");
     out.println("+\"<td colspan=\\\"2\\\" class=\\\"text\\\" style=\\\"width:95%\\\">组合查询</td>\"");
     out.println("+\"</tr>\"");
     out.println("+\"<tr>\"");
     out.println("+\"<td>&nbsp;</td>\"");
     out.println("+\"<td colspan=\\\"2\\\">\"");
     out.println("+\"<table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"1\\\" cellpadding=\\\"1\\\" align=\\\"center\\\" class=\\\"text\\\">\"");
     for(int i = 0;i < voArray.length;i++){
     if(voArray[i].getQuerytolSig().equals("1")){
     out.println("+\"<tr>\"");
     out.println("+\"<td>\"");
     out.println("+\""+voArray[i].getQuerytolName()+"\"");
     out.println("+\"</td>\"");
     out.println("+\"<td style=\\\"width:50%\\\">\"");
     if(!voArray[i].getQuerytolType().equals("select")){
     out.print("+\"<input type=\\\""+voArray[i].getQuerytolType()+"\\\" name=\\\""+voArray[i].getQuerytolPar()+"\\\"  ");
     if(voArray[i].getQuerytolDo()!=null){out.print(voArray[i].getQuerytolDo());}
     out.println(" onfocus=\\\"doFocus('"+new Integer(m).toString()+"')\\\" class=\\\"area100\\\">\"");
     }else{
     out.print("+\"<select name=\\\""+voArray[i].getQuerytolPar()+"\\\"  ");
     if(voArray[i].getQuerytolDo()!=null){out.print(voArray[i].getQuerytolDo());}
     out.println(" onfocus=\\\"doFocus('"+new Integer(m).toString()+"')\\\">\"");
     try{
     Class reflectClass=Class.forName(voArray[i].getQuerytolJ2e());
     Object myInst = reflectClass.newInstance();
     Method doJ2e = reflectClass.getMethod(voArray[i].getQuerytolJ2em(),null);
     Object[] myData = (Object[])doJ2e.invoke(myInst,null);
     for(int j=0;j<myData.length;j++){
                   Class reflectClassVO = myData[j].getClass();
                   Method getVO = reflectClassVO.getMethod(voArray[i].getQuerytolVo(),null);
                   Method getVOm = reflectClassVO.getMethod(voArray[i].getQuerytolVom(),null);
     out.println("+\"<option value=\\\""+getVO.invoke(myData[j],null).toString()+"\\\">"+getVOm.invoke(myData[j],null).toString()+"</option>\"");
             }
     }
             catch (IllegalAccessException ex) {
               ex.printStackTrace();
             }catch (IllegalArgumentException ex) {
               ex.printStackTrace();
             }catch (InvocationTargetException ex) {
               ex.printStackTrace();
             }catch (NoSuchMethodException ex) {
               ex.printStackTrace();
             }catch (SecurityException ex) {
               ex.printStackTrace();
             }
     out.println("+\"</select>\"");
     }
     out.println("+\"</td>\"");
     out.println("+\"</tr>\"");
     }
     }
     out.println("+\"</table>\"");
     out.println("+\"</td>\"");
     out.println("+\"</tr>\"");
     }
     out.println("+\"<tr>\"");
     out.println("+\"<td colspan=\\\"3\\\" align=\\\"center\\\">\"");
     out.println("+\"<p>&nbsp;</p>\"");
     if(m < voArray.length)
     out.println("+\"<input type=\\\"hidden\\\" name=\\\"total\\\" value=\\\""+new Integer(m).toString()+"\\\">\"");
     else out.println("+\"<input type=\\\"hidden\\\" name=\\\"total\\\" value=\\\""+new Integer(m-1).toString()+"\\\">\"");
     out.println("+\"<input type=\\\"hidden\\\" name=\\\"muil\\\" value=\\\""+new Integer(k).toString()+"\\\">\"");
     out.println("+\"<input type=\\\"button\\\"  class=\\\"area100\\\" name=\\\"bt\\\" value=\\\"全部\\\" onclick=\\\"doAll('queryall','\"+aa+\"')\\\" >\"");
     out.print("+\"&nbsp;\"");
     out.println("+\"<input type=\\\"button\\\" class=\\\"area100\\\"  name=\\\"bt1\\\" value=\\\"提交\\\" onclick=\\\"doAll('querypart','\"+aa+\"')\\\" >\"");
     out.println("+\"</td>\"");
     out.println("+\"</tr>\"");
     out.println("+\"</form>\"");
     out.println("+\"</table>\"");
     out.println("+\"</td>\"");
     out.println("+\"</tr>\"");
     out.println("+\"</table>\"");%>;
<%}else{%>
	var myMess = "本模块的不采用此种查询方式，请使用页面中的查询或点击列表！";
<%}%>
var b = new xWin("2",300,200,320,160,"<font class=font9>查询</font>",myMess);
form2.divStaus.value=1;
	}else{
		viewObj(xMsg2);
	}
	}
	else
	{
		alert("现在的页面状态不允许使用该按钮！");
	}
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>

<body  background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad="MM_preloadImages('<%=imgpath%>onmouse_bg_21.gif','<%=imgpath%>onmouse_bg_20.gif','<%=imgpath%>onmouse_bg_17.gif','<%=imgpath%>onmouse_bg_19.gif','<%=imgpath%>onmouse_bg_18.gif','<%=imgpath%>onmouse_bg_16.gif','<%=imgpath%>onmouse_bg_15.gif','<%=imgpath%>onmouse_bg_14.gif','<%=imgpath%>onmouse_bg_13.gif','<%=imgpath%>onmouse_bg_22.gif','<%=imgpath%>sy_2.gif')">
<table width="100%" height="26" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
	<tr>
		<td> <img name="tag" value="<-" border="0" src="<%=imgpath%>js_left.jpg" id="down" onClick="hide(this)"  style="CURSOR: hand" width="21" height="27"></td>
		<td width="100%" height="26" background="<%=imgpath%>top5.gif" align="center">
			<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="1">
				<tr>
					<td width="100"></td>
<%
	int fg = -1;
	//用户可以进行的操作

    String[] option = {"增加","修改","删除","上传","列表", "保存", "清空", "取消","查询","首页"};// 9
    boolean[] isUser = new boolean[option.length];//用户是否可以进行相应的操作


	//操作对应的工作流号

    KerWorkfldeVO[] workFlowVOAr = new KerWorkfldeVO[option.length];
    String pid = "";
	//初始化option和isUser
    for(int j = 0; j < option.length; j++)
	{
		int loc = -1;
		for(int i = 0; i < childMenuAr.length; i++)
		{
			//System.out.println("*****childMenuAr[i].getMenuId():"+childMenuAr[i].getMenuId());
			KerMenuVO vo = kernelJB.getKerMenuInfo(childMenuAr[i].getMenuId());
			if(vo.getMenuName().equals(option[j]))
			{
				isUser[j] = true;
				loc = i;
				workFlowVOAr[j] = kernelJB.getKerWorkfldeByMenu(vo.getId());
				//System.out.println("-------------------workFlowVOAr["+j+"]:"+workFlowVOAr[j].getWorkfldeId());
                break;
			}
			if(vo.getMenuName().equals("上传")) fg=1;
		}
		if(isUser[j])
		{
			isUser[j] = false;
			for(int i = 0; i < dlqxVOAl.size(); i++)
			{
				if(((SysDlqxVO)dlqxVOAl.get(i)).getMenuId().equals(childMenuAr[loc].getMenuId()))
				{
				isUser[j] = true;
				break;
				}
			}
		}
    }

	//isUser[7] = isUser[6];//“发送”和“确认”同时存在

    workFlowVOAr[5] = null;//null表示操作无工作流号


    for(int j = 5; j < option.length; j++)
	{
		isUser[j] = true;
		workFlowVOAr[5] = null;//null表示操作无工作流号

    }

	//操作的ID
    String[] optionId = {"add", "update", "delete", "upload","list",  "save", "clear", "cancel", "query","toindex"};
	//操作对应tree参数
	//  String[] treeAr = {"treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm", "treelaw.htm"};
	//操作对应的img（可以使用状态）
    String[] imgAble= {imgpath+"main_11.gif",imgpath+"main_12.gif",imgpath+"main_13.gif",imgpath+"main_14.gif",imgpath+"main_16.gif",imgpath+"main_15.gif",imgpath+"main_17.gif",imgpath+"main_18.gif",imgpath+"main_19.gif",imgpath+"sy_1.gif"};
	//操作对应的img（不可以使用状态）
	String[] imgNable= {imgpath+"no_clk_11.gif",imgpath+"no_clk_12.gif",imgpath+"no_clk_13.gif",imgpath+"no_clk_14.gif",imgpath+"no_clk_16.gif",imgpath+"no_clk_15.gif",imgpath+"no_clk_17.gif",imgpath+"no_clk_18.gif",imgpath+"no_clk_19.gif",imgpath+"sy_1.gif"};
	//操作对应的img（触发状态）
	String[] imgOver= {imgpath+"onmouse_bg_11.gif",imgpath+"onmouse_bg_12.gif",imgpath+"onmouse_bg_13.gif",imgpath+"onmouse_bg_14.gif",imgpath+"onmouse_bg_16.gif",imgpath+"onmouse_bg_15.gif",imgpath+"onmouse_bg_17.gif",imgpath+"onmouse_bg_18.gif",imgpath+"onmouse_bg_19.gif",imgpath+"sy_2.gif"};
	//显示操作
	pid = workFlowVOAr[2] == null? "-1" : workFlowVOAr[2].getWorkfldeId().toString();
    for(int i = 0; i < option.length; i++)
	{
%>
          <td width="48" <%if(isUser[i]){%>	onMouseOver="my_nbGroup('<%=optionId[i]%>','<%=imgOver[i]%>')" onMouseOut="my_nbOut('<%=optionId[i]%>','<%=imgAble[i]%>')"	<%}%>><%if(isUser[i]){%>
          <a href="<%if(!(optionId[i].equals("query"))){%>javascript:doGo_MM('<%=optionId[i]%>', '/<%=projectpath%>/servlet/ControlServlet?sysElmId=<%=request.getParameter("sysElmId")%>&workFldeId=<%=(workFlowVOAr[i] == null? -1 : workFlowVOAr[i].getWorkfldeId().intValue())%>','<%=(workFlowVOAr[i] == null? -1 : workFlowVOAr[i].getWorkfldeId().intValue())%>')"><%}else{if(voArray != null){%> javascript:initialize('<%=(workFlowVOAr[2] == null? -1 : workFlowVOAr[2].getWorkfldeId().intValue())%>')"><%}else out.print("#\">");}}%><img src="<%if(isUser[i] && ((fg==1 && (optionId[i].equals("upload") || optionId[i].equals("list"))) || ((optionId[i].equals("add") || optionId[i].equals("query") || optionId[i].equals("list")) && fg == -1))){out.print(imgAble[i]);}else{out.print(imgNable[i]);}%>" name="<%=optionId[i]%>" width="48" height="26" border="0" id="<%=optionId[i]%>"><%if(isUser[i]){%></a><%}%></td>
<%
	}
%>
					<td width="500"></td>
				</tr>
			</table>
		</td>
	</tr>
<%
    boolean myFlag =  false;
    String loc = "";
    if(myPage.getMenuNote()!=null && !myPage.getMenuNote().trim().equals(""))
	{
		System.out.println("找到跳转页面");
		myFlag = true;
		loc =  "/"+projectpath+"/" + myPage.getMenuNote();
    }

	//处理高分辨率情况
	String myindexpage = KernelBase.getJiveProperty("skinpath.page." + dlsbVO.getDlsbDlm());
	String listheight = "437";
	if(myindexpage!=null && myindexpage.equals("high")) listheight = "690";
	if(myindexpage!=null && myindexpage.equals("lower")) listheight = "260";

%>
	<tr width="100%" height="100%">
		<td width="100%"  height="<%=listheight%>" align="center" valign="top" colspan ="2">
			<iframe width="100%" height="100%" src="<%if(myFlag) out.print(loc);else{%>		/<%=projectpath%>/kernel/pub/frame/main_main.jsp?pid=<%=pid%><%System.out.println("未找到跳转页面");}%>"
			name="I2" border="0" frameborder="0" scrolling="yes"></iframe>
		</td>
	</tr>
</table>

<form name="form2">
	<input type="hidden" name="doStaus" value="init">
	<input type="hidden" name="divStaus" value="0">
</form>
<script language="javascript">
newStr="";
 <%
    Vector tmpV = kernelJB.getTreeParent(parentId.intValue());
    String str = "";
    for(int i = tmpV.size()-1;i >= 0;i--)
	{
		KerMenuVO tmpVO = (KerMenuVO) tmpV.elementAt(i);
		str = str + tmpVO.getMenuName() ;
		out.print("newStr=newStr+\"" +tmpVO.getMenuName()+"\";");
        if( i != 0 )
		{
			str = str + "-&gt;" ;
			out.print("newStr=newStr+\"-&gt;\";");
        }
    }
%>
//alert(parent.up_downFrame);
//if(parent.up_downFrame != "undefined")
parent.up_downFrame.myLocal.all.tags( "FONT" )[0].innerHTML=newStr;
</script>
<%
	//设置用户所在位置

    String myloc = str;
    Online online = new Online(dlsbVO.getPersonId());
    online.SetLoc(myloc);
    java.util.Calendar cal = java.util.Calendar.getInstance();
    online.setZx_Zhsj((new java.sql.Timestamp(cal.getTime().getTime())).toString());
%>
<%@ include file="/javascript/controlquery.js"%><%-- /*包含查询层的javascript*/ --%>
<%@include file="/javascript/generalcheck.js"%>

</body>
</html>
